#include <iostream>
#include<string.h>
// #include"add.h"

using namespace  std;
void aw_set_symbol(unsigned int *reg_value, unsigned int symbol_value,
                   unsigned char symbol_len, unsigned char symbol_shift)
{
for(int i=0; i<symbol_len; i++)
    *reg_value &= ~(1 << symbol_shift + i);
    *reg_value |= (symbol_value << symbol_shift);
}


struct A
{
	char str;
	int buf;
	short c;
};

// void func(char instr[8]){

// 		cout<<"sizeof(instr)"<<sizeof(instr)<<endl;
// 	}

int main(int argc, char* argv[])
{
	char str[] = "awinic";
	char* p = str;
	int i = 12;
	char instr[8];
	memset(instr, 0, sizeof(instr));
	memcpy(instr, str, sizeof(str));
	cout << "instr[0]:" << instr[0] << endl;
	// cout<<"szieof(instr) "<<sizeof(instr)<<" instr[0] "<<instr[0]<<endl;
	// int B=20;
	short a=2;
	short* q = &a;
	// *q=B;
	cout << *q << endl;
	cout << "sizeof(str)" << sizeof(str) << endl;
	cout << "sizeof(p)" << sizeof(p) << endl;
	cout << "sizeof(i)" << sizeof(i) << endl;
	cout << "sizeof(test)" << sizeof(A) << endl;
	cout << "sizeof(*q)" << sizeof(*q) << endl;
	cout << "sizeof(q)" << sizeof(q) << endl;


}